// Copyright (C) Kumo inc. and its affiliates.
// Author: Jeff.li lijippy@163.com
// All rights reserved.
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published
// by the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program.  If not, see <https://www.gnu.org/licenses/>.
//

#pragma once

#include <nebula/core/memory_pool.h>
#include <nebula/version.h>

namespace nebula {

    namespace memory_pool {

        namespace internal {

            static constexpr int64_t kDebugXorSuffix = -0x181fe80e0b464188LL;

            // A static piece of memory for 0-size allocations, so as to return
            // an aligned non-null pointer.  Note the correct value for DebugAllocator
            // checks is hardcoded.
            extern int64_t zero_size_area[1];
            static uint8_t *const kZeroSizeArea = reinterpret_cast<uint8_t *>(&zero_size_area);


        }  // namespace internal

    }  // namespace memory_pool

}  // namespace nebula
